<?php 
/*
 * template name: readers
*/
get_header();
?>

<section class="main-top">
	<div class="center-box">
    	<?php while (have_posts()) : the_post(); ?>
		<div class="top-title">
		    <h1><?php the_title(); ?></h1>
		    <?php the_content(); ?>
		</div>
        <?php endwhile; ?>
        <div class="cat-info">
           建站<?php echo floor((time()-strtotime(get_option('swt_builddate')))/86400); ?>天来
            <p>共&nbsp;<?php echo $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments where comment_author!='".(get_option('swt_user'))."'");?>&nbsp;条评论</p>
        </div>
    </div>
</section>

<div class="main">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<ul class="readers">
				<?php dtheme_page_readers($outer='小北',$timer='30',$limit='36'); ?>
			</ul>
		<?php comments_template('', true); ?>
        <p class="pagenav">
			<?php paginate_comments_links('prev_next=0');?>
		</p>
		<?php endwhile; endif; ?>
</div>
<?php get_footer(); ?>